/* ==========================================================================
   CFO 360° - FEUILLE DE STYLE COMPLETE ET UNIFIÉE
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy-primary: #0A2540;     
  --navy-dark: #061729;        
  --navy-soft: #F0F4F8;        
  
  --gold-primary: #C59B27;    
  --gold-light: #F3D060;      
  --gold-gradient: linear-gradient(135deg, #F3D060 0%, #C59B27 100%);
  --gold-glow: rgba(197, 155, 39, 0.25);

  --whatsapp-green: #25D366;

  --bg-white: #FFFFFF;        
  --bg-body: #FAFAFC;         
  
  --text-dark: #0F172A;       
  --text-muted: #475569;      
  
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.8;
  top: 0px !important;
  position: static !important;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.8px;
  font-weight: 700;
  color: var(--navy-primary);
}

p {
  color: var(--text-muted);
}

/* --- MASQUAGE DE LA BARRE GOOGLE TRANSLATE EN HAUT DE PAGE --- */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover,
.goog-logo-link,
.goog-te-gadget {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

font {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* --- TOP BAR --- */
.top-bar {
  background-color: var(--navy-dark);
  color: #94A3B8;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(197, 155, 39, 0.2);
  padding: 0.4rem 0;
}

.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-info span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-info i {
  color: var(--gold-primary);
}

.btn-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background-color: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-lang-trigger:hover {
  background: var(--gold-gradient);
  color: var(--navy-dark);
  border-color: transparent;
}

/* --- HEADER & NAV --- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold-primary);
  box-shadow: 0 4px 20px rgba(10, 37, 64, 0.06);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 150px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background-color: #F4F6F9;
  border: 1px solid rgba(197, 155, 39, 0.3);
  border-radius: 50px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--gold-gradient);
  color: var(--navy-dark);
  border-color: transparent;
  box-shadow: 0 4px 15px var(--gold-glow);
}

/* --- MODALE LANGUE --- */
#language-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 23, 41, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
}

.language-modal-card {
  background: var(--bg-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(197, 155, 39, 0.3);
  border-top: 5px solid var(--gold-primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 480px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.language-modal-card h2 {
  font-size: 1.5rem;
}

.modal-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-primary);
  background: #F4F6F9;
  border: 1.5px solid var(--gold-primary);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  background: var(--gold-gradient);
  color: var(--navy-dark);
  border-color: transparent;
  box-shadow: 0 6px 20px var(--gold-glow);
  transform: translateY(-2px);
}

/* --- BOUTON FLOTTANT WHATSAPP --- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-green);
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #FFF;
}

/* --- STRUCTURE CONTENU --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(10, 37, 64, 0.12);
  margin-bottom: 3.5rem;
  border-top: 4px solid var(--gold-primary);
}

.hero h1 {
  color: var(--bg-white);
  font-size: 2.8rem;
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.hero h1 span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: #E2E8F0;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.page-header {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-lg);
  color: #FFF;
  margin-bottom: 3rem;
  border-top: 4px solid var(--gold-primary);
}

.page-header h1 {
  color: #FFF;
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #E2E8F0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 2.2rem;
  background: var(--gold-gradient);
  color: var(--navy-dark);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 8px 25px var(--gold-glow);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--bg-white);
  color: var(--navy-primary);
  transform: translateY(-3px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.card {
  background: var(--bg-white);
  border: 1px solid #E2E8F0;
  border-top: 4px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(197, 155, 39, 0.12);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.grid .card:nth-child(even) {
  background: var(--navy-primary);
  border-color: transparent;
  border-top: 4px solid var(--gold-light);
}

.grid .card:nth-child(even) h3 {
  color: var(--gold-light);
}

.grid .card:nth-child(even) p {
  color: #CBD5E1;
}

.grid .card:nth-child(even) .card-icon {
  background: rgba(243, 208, 96, 0.18);
  color: var(--gold-light);
}

.cta-banner {
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-dark) 100%);
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--gold-primary);
  text-align: center;
  margin-bottom: 2rem;
}

.cta-banner h2 {
  color: var(--bg-white);
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.cta-banner p {
  color: #94A3B8;
  max-width: 650px;
  margin: 0 auto 1.8rem auto;
}

.btn-alt {
  background: var(--bg-white);
  color: var(--navy-primary);
}

.btn-alt:hover {
  background: var(--gold-gradient);
  color: var(--navy-dark);
}

/* --- FORMULAIRE CONTACT --- */
.contact-form {
  background: #FFF;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid #E2E8F0;
  border-top: 4px solid var(--gold-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--navy-primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* --- FOOTER --- */
footer {
  background: var(--navy-dark);
  color: var(--bg-white);
  padding: 4rem 1.5rem 2rem 1.5rem;
  border-top: 4px solid var(--gold-primary);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-col p {
  color: #94A3B8;
  font-size: 0.92rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
  color: #94A3B8;
  font-size: 0.92rem;
}

.footer-col ul li a {
  color: #94A3B8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold-light);
}

.footer-col ul li i {
  color: var(--gold-primary);
  margin-right: 0.5rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #64748B;
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .top-bar-container { flex-direction: column; gap: 0.5rem; }
  .header-container { flex-direction: column; gap: 1rem; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 2rem; }
}
